<%-- 
    Document   : forgotpassword3
    Created on : May 8, 2012, 2:39:06 PM
    Author     : Jayson Kiong
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Forgot Password</title>
        <link rel = "stylesheet" type = "text/css" href = "quicklendstyle.css"/>
        <script src="gen_validatorv4.js" type="text/javascript"></script>
    </head>
    <body>
        
        <form id="resetpasswordform" action="/Quicklend/ResetPasswordServlet" method="POST">
        <div id="contentbg" style="position: absolute; top:100px; left:450px;">
            <img src="images/forgotpasswordbg.png" alt=""></img>
            <div id="contenttitle" style="position: absolute; top:10px; left:13px;">
            Reset Password
            </div>
            <table id="forgotpasswordcontent"style="position:absolute; top:90px; left:60px; filter:alpha(opacity=100)">
                <tr>
                    <td>New Password:</td><td><input name="password" type="password" style="width:200px"><div id='resetpasswordform_password_errorloc' style="color:#FF0000"></div></td>
                </tr>
                <tr>
                    <td>Retype Password:</td><td><input name="confirmpassword" type="password" style="width:200px"><div id='resetpasswordform_confirmpassword_errorloc' style="color:#FF0000"></div></td>
                </tr>
                
                <tr>
                    <td></br></td>
                </tr> 
            </table>
            <div id="forgotpasswordfunction" style="position:absolute;top:240px;left:200px;">
                <input type="image" src="images/sendbtn.png"  size="13" style="position:absolute;left:0px;"/></a>
                <a href="index.jsp" class="cancelbtn" name="cancelbtn"  size="13" style="position:absolute; left:110px"/></a>     
            </div>
         </div>
        </form>
    </body>
    <script type="text/javascript">
         var frmvalidator  = new Validator("resetpasswordform");
         frmvalidator.addValidation("password","req","Please enter your password");
         frmvalidator.addValidation("confirmpassword","req","Please confirm your password");
         frmvalidator.addValidation("confirmpassword","eqelmnt=password","The confirmed password is not same as password");
         frmvalidator.EnableOnPageErrorDisplay();
         frmvalidator.EnableMsgsTogether();
    </script>
</html>
